<ion-view hide-nav-bar="false">
	
    <ion-nav-title>
        <div class="title title-center header-item" style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px);">我要借钱</div>
    </ion-nav-title>
<!--    <ion-nav-buttons side="right">
        <button class="button" style="background-color: white;color:black;border: 0px;" ng-click="toTip()">借不到钱?</button>
    </ion-nav-buttons>-->
    <ion-nav-buttons side="right">
			<span ng-click="toTip()" class="icon icon-my-help" style="color:orangered;font-size:30px;"></span>
	</ion-nav-buttons>
	
	<ion-content style="background-color:#f5f5f5;padding-top:10px;">
		
		<div style="width: 100%;height: 40px;font-size:16px;border-bottom:1px solid #ddd;background-color: white;">
			<div style="height: 10px;"></div>
			<div class="button-bar" style="margin: 0 auto;" ng-if="isDuan==1">
			  <a style="text-align: center;width: 50%;color: #42bd55;border-bottom: 2px solid #42bd55;height: 31px;" ng-click="changeSel(1)">短贷</a>
			  <a style="text-align: center;width: 50%;color: #888888;height: 31px;" ng-click="changeSel(2)">长贷</a>
			</div>
			<div class="button-bar" style="margin: 0 auto;" ng-if="isDuan==2">
			  <a style="text-align: center;width: 50%;color: #888888;height: 31px;" ng-click="changeSel(1)">短贷</a>
			  <a style="text-align: center;width: 50%;height: 31px;color: #42bd55;border-bottom: 2px solid #42bd55;" ng-click="changeSel(2)">长贷</a>
			</div>
		</div>
		<!-- 短贷为1，长贷为2 -->
		<div ng-if="isDuan==1">
		
			<div style="font-size: 13px;height: 40px;line-height: 40px;padding-left: 15px;color:#AAAAAA;background-color: white;">当前可借款额度 {{creditValue}} 元</div>
			
			<div class="list" style="margin-bottom: 0px;">
				<label class="item item-input">
	  				<span class="input-label">借款金额</span>
	  				<input type="text" placeholder="请输入100的整数倍" ng-model="produce.totalPrice" ng-change="appointmentChange(produce)">
	  				<span style="padding-right: 20px;font-size: 13px;"><strong>元</strong></span>
	  			</label>
	  			
				<label class="item item-input">
	  				<span class="input-label">还款日期</span>
	  				<input type="text" placeholder="期限不超过25天" ng-model="produce.deadTime" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" ng-change="deadTime()" ng-click="openDatePicker(produce)">
	  			</label>
	  			<div style="font-size: 13px;height: 30px;line-height: 30px;margin-left: 18px;color:#808080;">&nbsp;&nbsp;&nbsp;&nbsp;请滑动确定您能接受的利息	 <span style="color: red;">{{hkTip}}</span></div>
	  			<div class="item range myranged" style="border-top:0px;">
	  				<span>150%</span>
	  				<input type="range"  min="150" max="2000"  value="{{produce.interestRates}}" ng-model="produce.interestRates" ng-change="appointmentChangeh(produce)" >
	  				<span>2000%</span>
	  			</div> 
	  			<label class="item item-input">
	  				<span class="input-label" >到期后利息</span>
	  				<span style="font-size:11px;color:#808080">{{appointment | number:2}} 元</span>
	  				<!--<input type="text" readonly="readonly" style="background-color: white;" value="{{appointment | number:2}}" >-->
	  				<!--<span style="padding-right: 20px;font-size: 13px;">元</span>-->
	  			</label>
	  			
	  			<label class="item item-input">
	  				<span class="input-label">借款用途</span>
	  				<input type="text" placeholder="请简单描述借款用途" ng-model="produce.memo">
	  			</label>
	
				<label class="item item-input">
	  				<span class="input-label">发布有效期至</span>
	  				<input type="text" placeholder="发布期限不超过3天" ng-model="produce.limitTime"  ng-click="openDatePicker2()">
	  			</label>
	  			
			</div>
			
			<div style="margin-right: 17px;margin-left: 17px;clear: left;">
	    		<button class="button button-full button-positive" ng-click="addProduce(produce)" style="border-radius: 3px;">发布</button>
	    	</div>
			
			<div style="font-size: 12px;margin-left: 18px;margin-top: 10px;letter-spacing: 1px;margin-right: 10px;">
				<span style="color: #387ef5;">温馨提示：</span>
				<span style="color: #808080;">该笔贷款如有违约,个人信息将被公示至中国最大的黑名单平台-中国诚信联盟 www.credit-manage.com 及提交各大搜索引擎</span></div>
	    	<div style="font-size: 12px;margin-left: 18px;letter-spacing: 1px;margin-top: 10px;color: #808080;">还款日23:20自动扣款，请确保自金融帐户余额充足</div>
			
			
			<div style="margin-top: 10px;padding-left:18px;font-size:12px;">
				我已同意《<a href="#/tab/jkrxy" style="text-decoration:none;">借款人协议</a>》《<a href="#/tab/jdxy" style="text-decoration:none;">借贷协议</a>》《<a style="text-decoration:none;" href="#/tab/sqs">授权书</a>》
			</div>
    	<div style="height: 20px;"></div>
    	</div>
    	<!-- 身价小1500时  -->
    	<div style="background-color:#f5f5f5;" ng-if="isDuan==2&&xyCreditValue<1500">
	    	<div style="width: 80%;margin: 0 auto;">
	    		<div style="padding-top: 50px;background-color:#f5f5f5;text-align: center;">
	    			<img ng-src='img/lv2t.png' height="300">
	    		</div>
	    	</div>
    	</div>
       	<!-- 身价>=1500时  --> 	
    	<div ng-if="isDuan==2&&xyCreditValue>=1500">
		
			<div style="font-size: 13px;height: 40px;line-height: 40px;padding-left: 15px;color:#AAAAAA;background-color: white;">当前可借款额度 {{creditValue}} 元</div>
			
			<div class="list" style="margin-bottom: 0px;">
				<label class="item item-input">
	  				<span class="input-label">借款金额</span>
	  				<input type="text" placeholder="请输入100的整数倍" ng-model="produce.totalPrice" ng-change="placeholderChange(produce)">
	  				<span style="padding-right: 20px;font-size: 13px;"><strong>元</strong></span>
	  			</label>
	  			
				<div class="item item-input item-icon-right">
	  				<span class="input-label">分几期</span>
	  				<div style="width: 100%;" ng-click="showFenQi()" placeholder="12个月">{{produce.period}}&nbsp;</div>
	  				<i class="icon ion-ios-arrow-right"></i>
	  				<input type="hidden" ng-model="produce.period">
	  			</div>
	  			
	  			<div style="font-size: 13px;height: 30px;line-height: 30px;margin-left: 18px;color:#808080;">今日借款利率高于百分之55%，可能获机构投资，轻松借款</div>
	  			<div class="item range myrange" style="border-top:0px;">
	  				<span>0%</span>
	  				<input type="range" min="0" max="200" placeholder="12个月" value="{{produce.longInterestRates}}" ng-model="produce.longInterestRates" ng-change="placeholderChange(produce)">
	  				<span>200%</span>
	  			</div>
	  			
	  			<label class="item item-input">
	  				<span class="input-label">日利息</span>
	  				<span style="font-size:11px;color:#808080">{{placeholder}}</span>
	  			</label>
	  			
	  			<label class="item item-input item-icon-right" ng-click="payBackPlan(produce)">
	  				<span class="input-label">还款计划</span>
	  				<span style="font-size:11px;color:#808080">{{appointmentChang | number:2}}</span>
	  				<i class="icon ion-ios-arrow-right"></i>
	  			</label>
	  			
	  			<label class="item item-input">
	  				<span class="input-label">借款用途</span>
	  				<input type="text" placeholder="请简单描述借款用途" ng-model="produce.memo">
	  			</label>
	
				<label class="item item-input item-icon-right">
	  				<span class="input-label">发布有效期至</span>
	  				<input type="text" placeholder="发布期限不超过三天" ng-model="produce.limitTime" ng-click="openDatePicker2()">
	  				<i class="icon ion-ios-arrow-right"></i>
	  			</label>
	  			
			</div>
			
			<div style="margin-right: 17px;margin-left: 17px;clear: left;">
	    		<button class="button button-full button-positive" ng-click="addLongProduce(produce)" style="border-radius: 3px;">发布</button>
	    	</div>
			
			<div style="font-size: 12px;margin-left: 18px;margin-top: 10px;letter-spacing: 1px;margin-right: 10px;">
				<span style="color: #387ef5;">温馨提示：</span>
				<span style="color: #808080;">该笔贷款如有违约,个人信息将被公示至中国最大的黑名单平台-中国诚信联盟 www.credit-manage.com 及提交各大搜索引擎</span></div>
	    	<div style="font-size: 12px;margin-left: 18px;letter-spacing: 1px;margin-top: 10px;color: #808080;">还款日23:20自动扣款，请确保自金融帐户余额充足</div>
			
			
			<div style="margin-top: 0px;padding-left:18px;font-size:12px;">
				我已同意《<a style="text-decoration:none;" href="#/tab/jkrxy">借款人协议</a>》《<a style="text-decoration:none;" href="#/tab/jdxy">借贷协议</a>》《<a style="text-decoration:none;" href="#/tab/sqs">授权书</a>》
			</div>
			
			<div style="height: 20px;"></div>
    	
    	</div>

	</ion-content>
</ion-view>